import { postAjax ,getAjax} from './myapi'
const api = {
  // 登陆
  customerService_passwordLogin: data => postAjax('/customerService/passwordLogin', data),
  activity_getCoupon: data => getAjax('/coupon/feeInfo?couponId='+data),
  couponReceive_receiveByPhone: data=>postAjax('/couponReceive/receiveByPhone',data),
  user_list: data=>postAjax('/user/list',data), // 已接入的客服会话
  user_userNotConnected: data=>postAjax('/user/userNotConnected',data), // 待接入的客服会话
  information_list: data=>postAjax('/information/list',data), // 获取点击用户的历史会话
  user_endSession: data=>postAjax('/user/endSession',data), // 结束会话
  user_clickToConnect: data=>postAjax('/user/clickToConnect',data), // 
  user_addFile: data=>postAjax('/user/addFile',data), // 上传图片
  frequentlyAskedQuestions_list: data=>postAjax('/frequentlyAskedQuestions/list',data), // 常见问题列表
  frequentlyAskedQuestions_add: data=>postAjax('/frequentlyAskedQuestions/add',data), // 常见问题添加
  frequentlyAskedQuestions_edit: data=>postAjax('/frequentlyAskedQuestions/edit',data), // 常见问题修改
  frequentlyAskedQuestions_dele: data=>postAjax('/frequentlyAskedQuestions/dele',data), // 常见问题删除

  freePower_getCoupon: data => getAjax('/dischargingElectricity/info?dischargingElectricityId='+data),
  grantPower_receiveByPhone: data=>postAjax('/grantPower/dischargingElectricity',data),
  app_send: data=>postAjax('/send',data)

}
export default api
